package com.aaa.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author AAATeacherChen
 * @since 2020-07-26
 */
@TableName("petrol_station")
@Data
public class PetrolStation extends Model<PetrolStation> {

    private static final long serialVersionUID = 1L;

    /**
     * 加油站id
     */
    @TableId(value = "station_id", type = IdType.AUTO)
    private Integer stationId;
    /**
     * 加油站名称
     */
    @TableField("station_name")
    private String stationName;
    /**
     * 上级id
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 加油站地址
     */
    @TableField("station_address")
    private String stationAddress;
    /**
     * 加油站经度
     */
    @TableField("station_lon")
    private String stationLon;
    /**
     * 加油站纬度
     */
    @TableField("station_lat")
    private String stationLat;
    /**
     * 所属公安机关
     */
    @TableField("organization")
    private Integer organization;
    /**
     * 加油站性质
     */
    @TableField("station_type")
    private Integer stationType;
    /**
     * 员工数量
     */
    @TableField("emp_num")
    private Integer empNum;
    /**
     * 加油机数量
     */
    @TableField("machine_num")
    private Integer machineNum;
    /**
     * 法人姓名
     */
    @TableField("corporate_name")
    private String corporateName;
    /**
     * 法人身份证
     */
    @TableField("corporate_id")
    private String corporateId;
    /**
     * 法人联系方式
     */
    @TableField("corporate_phone")
    private String corporatePhone;
    /**
     * 保卫组织负责人姓名
     */
    @TableField("protector_name")
    private String protectorName;
    /**
     * 保卫组织负责人联系方式
     */
    @TableField("protector_phone")
    private String protectorPhone;
    /**
     * 审核状态，0未审核，1审核通过，2驳回
     */
    @TableField("check_stat")
    private Integer checkStat;
    /**
     * 驳回理由
     */
    @TableField("reject_info")
    private String rejectInfo;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改人审核人
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;




    @Override
    protected Serializable pkVal() {
        return this.stationId;
    }

    @Override
    public String toString() {
        return "PetrolStation{" +
        "stationId=" + stationId +
        ", stationName=" + stationName +
        ", stationAddress=" + stationAddress +
        ", stationLon=" + stationLon +
        ", stationLat=" + stationLat +
        ", organization=" + organization +
        ", stationType=" + stationType +
        ", empNum=" + empNum +
        ", machineNum=" + machineNum +
        ", corporateName=" + corporateName +
        ", corporateId=" + corporateId +
        ", corporatePhone=" + corporatePhone +
        ", protectorName=" + protectorName +
        ", protectorPhone=" + protectorPhone +
        ", checkStat=" + checkStat +
        ", rejectInfo=" + rejectInfo +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        "}";
    }
}
